import Vue from 'vue'
import App from './App'
import store from './store'
import util from './utils/util'
import Cache from './utils/cache'
import configs from './config/app.js'
import { getDicts } from "./api/common.js";
// import uView from "uview-ui";
// Vue.use(uView);
// import * as Order from './libs/order';


// #ifndef VUE3
Vue.prototype.$getDicts = getDicts;
Vue.prototype.$util = util;
Vue.prototype.$config = configs;
Vue.prototype.$Cache = Cache;
Vue.prototype.$store = store // 定义成全局组件
Vue.prototype.$eventHub = new Vue();
Vue.config.productionTip = false
App.mpType = 'app'
require('./mock/index.js');

const app = new Vue({
    ...App,
	store,
	Cache
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'


export function createApp() {
	const app = createSSRApp(App)
	return {
		app,
		store,
		Cache
	}
}
// #endif
